﻿using MediatR;
using ProduceBasicData.Domain.Weather;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Weather
{
    /// <summary>
    /// 生成天气预警的命令（支持城市编码/经纬度，关联生产计划）
    /// </summary>
    public class GenerateWeatherAlertCommand : IRequest<ApiResult<List<WeatherAlert>>>
    {
        /// <summary>城市编码（如：上海=310000，优先级高于经纬度）</summary>
        public string CityCode { get; set; } = string.Empty;

        /// <summary>纬度（经纬度模式时使用）</summary>
        public double? Latitude { get; set; }

        /// <summary>经度（经纬度模式时使用）</summary>
        public double? Longitude { get; set; }

    }
}
